package ws

import "easychat/pkg/constants"

type (
	Msg struct {
		constants.MType
		Content string
	}

	Chat struct {
		ConversationId     string `mapstructure:"conversationId" json:"conversationId"`
		constants.ChatType `mapstructure:"chatType" json:"chatType"`
		SendId             string `mapstructure:"sendId" json:"sendId"`
		RecvId             string `mapstructure:"recvId" json:"recvId"`
		Msg                `mapstructure:"msg" json:"msg"`
		SendTime           int64 `mapstructure:"sendTime" json:"sendTime"`
	}

	Push struct {
		ConversationId     string `mapstructure:"conversationId"`
		constants.ChatType `mapstructure:"chatType"`
		SendId             string   `mapstructure:"sendId"`
		RecvId             string   `mapstructure:"recvId"`
		RecvIds            []string `mapstructure:"recvIds"`
		SendTime           int64    `mapstructure:"sendTime"`

		constants.MType `mapstructure:"mType"`
		Content         string `mapstructure:"content"`
	}
)
